package com.hilon.segment.jpa.controller;

import com.hilon.base.controller.BaseController;
import com.hilon.segment.jpa.entity.Department;
import com.hilon.segment.jpa.service.DepartmentService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/department")
public class DepartmentController extends BaseController<Department> {
    private final DepartmentService departmentService;

    public DepartmentController(DepartmentService departmentService) {
        this.departmentService = departmentService;
        super.buildEntityHandleService(departmentService);
    }
}
